{extend name="base" /}
{block name="body"}
<div class="layui-card">
	<div class="layui-card-body">
        <div class="layui-btn-group">
            <a href="{:url('update_user')}" class="layui-btn layui-btn-sm layui-btn-warm ajax-action"><i class="fa fa-star"></i> 更新会员</a>
        </div>
		<table class="layui-table layui-form" lay-skin="line">
			<thead>
				<tr>
					<th>{$Think.lang.id}</th>
          			<th>{$Think.lang.img}</th>
					<th>{$Think.lang.nickname}</th>
					<th>{$Think.lang.sex}</th>
					<th>{$Think.lang.region}</th>
					<th>{$Think.lang.source}</th>
					<th>{$Think.lang.followtime}</th>
					<th>{$Think.lang.followstatus}</th>
				</tr>
			</thead>
			<tbody>
				{volist name="list" id="v" empty="$empty"}
				<tr>
					<td>{$i}</td>
	        		<td><img src="{$v.headimgurl}" style="width:40px;border-radius:50px;"></td>
					<td>{$v.nickname}</td>
					<td>
						{if $v.sex eq 1}
						<span class="layui-badge layui-badge-green">男</span>
						{elseif $v.sex eq 2}
						<span class="layui-badge layui-badge-red">女</span>
						{else}
						<span class="layui-badge layui-badge-blue">未知</span>
						{/if}
					</td>
					<td>{$v.country}{$v.province}{$v.city}</td>
					<td>
						{if $v.subscribe_scene eq 'ADD_SCENE_SEARCH'}
						<span class="layui-badge layui-badge-green">公众号搜索</span>
						{elseif $v.subscribe_scene eq 'ADD_SCENE_ACCOUNT_MIGRATION'}
						<span class="layui-badge layui-badge-orange">公众号迁移</span>
						{elseif $v.subscribe_scene eq 'ADD_SCENE_PROFILE_CARD'}
						<span class="layui-badge layui-badge-cyan">名片分享</span>
						{elseif $v.subscribe_scene eq 'ADD_SCENE_QR_CODE'}
						<span class="layui-badge layui-badge-blue">扫描二维码</span>
						{elseif $v.subscribe_scene eq 'ADD_SCENE_PROFILE_LINK'}
						<span class="layui-badge layui-badge-black">图文页内名称点击</span>
						{elseif $v.subscribe_scene eq 'ADD_SCENE_PROFILE_ITEM'}
						<span class="layui-badge layui-badge-gray">图文页右上角菜单</span>
						{elseif $v.subscribe_scene eq 'ADD_SCENE_PAID'}
						<span class="layui-badge layui-badge-green">支付后关注</span>
						{elseif $v.subscribe_scene eq 'ADD_SCENE_WECHAT_ADVERTISEMENT'}
						<span class="layui-badge layui-badge-red">微信广告</span>
						{elseif $v.subscribe_scene eq 'ADD_SCENE_OTHERS'}
						<span class="layui-badge layui-badge-red">其他</span>
						{else}
						<span class="layui-badge layui-badge-orange">未知</span>
						{/if}
					</td>
					<td>{$v.subscribe_time|date="Y-m-d H:i:s"}</td>
          			<td>
          				{if $v.subscribe eq 1}
          				<span class="layui-badge layui-badge-green">已关注</span>
          				{else}
          				<span class="layui-badge layui-badge-red">未关注</span>
	          			{/if}
	          		</td>
				</tr>
				{/volist}
			</tbody>
		</table>
		<div class="page">{$list|Raw}</div>
	</div>
</div>
{/block}
{block name="js"}
{/block}